\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0\b0\i0\ul0\fs28 C++ libraries\
\
Q: I obtained the Free Software Foundations libraries described in NextAnswer objc.624, but they won't compile. What do I have to do to get them to compile?\
\
A: There are a couple of things that you must do in order to compile version 1.37.0 of libg++ on the NeXT machine.\
\
• First, you must turn off the inclusion of libg++'s malloc routines. You can do this by setting a compiler flag. Edit the Makefile and search for
\fc0 MALLOC. Remove the comment # indicator on the line which sets XTRAFLAGS to -DNO_LIBGXX_MALLOC. It will look like this when you've finished:\
\
\pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f2\fc0 # Use this to disable placing libg++ version of malloc in libg++.a\
XTRAFLAGS = -DNO_LIBGXX_MALLOC\
\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0 You should also make this change in the Makefile in the
\b tests
\b0 directory.\
\
• Also, if you are not using gnu make, you should change this line in the same Makefile:\
\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\f0 to point to the directory in which the sources live.\
\
• Next, you must modify the time.h file. There are some conflicts with the time.h file which is shipped with libg++ and the time.h that comes with the NeXT system. Change the first few lines to look like this:\
\b0 directory. Set GXX to cc++ and set VERBOSITY_FLAGS to -Wall (remove the -v flag. Changing verbosity isn't necessary, but with -v set you will get lots of useless messages.\
\
Like this:\
\f2 GXX = cc++\
VERBOSITY_FLAGS = -Wall\
\f0 \
After doing each of these, the GNU libraries will compile on a NeXT machine.\